import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson
} from '../utils/request';

//查询会员信息
export function getmemberinfo(data) {
  return post('/api/member-service/v1/member/queryMember', data);
}

//会员等级
// export function getmemberrules(data) {
//   return post('/api/member-service/v1/memberRule/queryMemberRules', data);
// }
//会员修改
export function updatememberinfo(data) {
  return post('/api/user-service/v1/GradelevelRule/updateGradelevelRule', data);
}
//会员删除
export function delmemberinfo(data) {
  return dalete('/api/member-service/v1/member/delMemberInfo', data);
}


//获取组织机构树接口:
export function queryStoreOrgseq(data) {
  return get('/api/user-service/v1/privilege/getOrganizationTreeByOrgSeq', data);
}

//获取组织机构树接口:
export function getMemberNum(data) {
  return get('/api/member-service/v1/member/getMemberNum', data);
}

//获取会员档案列表:
export function memberManage(data) {
  return post('/api/member-service/v1/member/memberManage', data);
}


//获取会员总数计数:
export function getGraCount(data) {
  return get('/api/member-service/v1/member/getGraCount', data);
}

//获取会员详情:
export function queryMemberDetail(data) {
  return post('/api/member-service/v1/member/queryMemberDetail?memberId=' + data.memberId);
}

//获取会员详情:
export function editClerk(data) {
  return post('/api/member-service/v1/member/blockMember?memberId=' + data.memberId + '&phone=' + data.phone + '&blockStatus=' + data.blockStatus);
}

// 赠送云币
export function addIntegral(data) {
  return post('/api/member-service/v1/member/addIntegral', data);
}

// 获取云币明细
export function queryMemberConsumerIntegral(data) {
  return post('/api/member-service/v1/BonuspointRule/queryMemberConsumerIntegral', data);
}

// 撤回云币
export function withdrawMemberIntegral(data) {
  return post('/api/member-service/v1/memberBonuspoint/withdrawMemberIntegral', data);
}